package com.tfswx.ruleengine.fn;

import com.greenpineyu.fel.context.FelContext;
import com.tfswx.ruleengine.compute.gzjy.BaseFn;
import com.tfswx.ruleengine.compute.util.DateUtil;

import java.util.Date;

/**
 * @author Ricky
 * @date 2021/4/29
 */
public class Now extends BaseFn {
    @Override
    public Object call(Object[] arguments, FelContext context) {
        return DateUtil.format(new Date());
    }

    @Override
    public String getZwmc() {
        return "获取当前时间";
    }


    @Override
    public String getName() {
        return "now";
    }
}
